<script setup>
import { onMounted, getCurrentInstance } from "vue";
const { proxy } = getCurrentInstance();
import entrance from "@/assets/img/entrance.png";
import licenseplate from "@/assets/img/licenseplate.png";
import name from "@/assets/img/name.png";
import parkinglot from "@/assets/img/parkinglot.png";
import phone from "@/assets/img/phone.png";
const parkingLotList = ref([
  {
    licenseplate: "晋A88886",
    name: "张三",
    phone: "138****4562",
    parkinglot: "a01",
  },
  {
    licenseplate: "晋A88886",
    name: "张三",
    phone: "138****4562",
    parkinglot: "a01",
  },
  {
    licenseplate: "晋A88886",
    name: "张三",
    phone: "138****4562",
    parkinglot: "a01",
  },
  {
    licenseplate: "晋A88886",
    name: "张三",
    phone: "138****4562",
    parkinglot: "a01",
  },
  {
    licenseplate: "晋A88886",
    name: "张三",
    phone: "138****4562",
    parkinglot: "a01",
  },
]);
onMounted(() => {});
</script>

<template>
  <div class="app-container">
    <div class="top_class">停车叫号系统</div>
    <div class="table">
      <el-table
        :data="parkingLotList"
        :border="false"
        style="--el-table-border-color: none"
      >
        <el-table-column align="center" header-cell-class-name="top_two_class">
          <template #header>
            <img :src="entrance" width="32" height="26" alt="" />
            <p>待出场</p>
            <span class="english_label">Waiting to appear</span>
          </template>
          <el-table-column align="center" prop="licenseplate">
            <template #header>
              <img :src="licenseplate" width="18" height="18" alt="" />
              <p>车牌号</p>
            </template>
            <!-- <template #default="scoped">
              <span>{{ scoped.row.k1.plateNo }}</span>
            </template> -->
          </el-table-column>
          <el-table-column align="center" prop="name">
            <template #header>
              <img :src="name" width="18" height="18" alt="" />
              <p>姓名</p>
            </template>
          </el-table-column>
          <el-table-column align="center" prop="phone">
            <template #header>
              <img :src="phone" width="18" height="18" alt="" />
              <p>电话</p>
            </template>
          </el-table-column>
        </el-table-column>
      </el-table>
    </div>
  </div>
</template>
<style lang="scss" scoped>
.app-container {
  width: 100%;
  height: 100%;
  background: #000000;
}
.table {
  display: flex;
  margin-top: 10px;
}
.top_class {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 31px;
  margin: 0 16px;
  line-height: auto;
  font-weight: bold;
  color: red;
}
:deep(.el-table) {
  background: #000000;
}
:deep(.el-table thead.is-group th.el-table__cell) {
  background: #000000;
  border: none;
}
:deep(.cell) {
  color: red;
}
:deep(.el-table__cell) {
  background: #000000;
  .cell {
    font-size: 20px;
    margin: 0 10px;
    line-height: 30px;
    font-weight: bold;
  }
}
:deep(.el-table_1_column_1) {
  .cell {
    font-size: 26px;
    margin: 0 16px;
    line-height: 30px;
    font-weight: bold;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: start !important;
    p {
      margin: 0 5px;
      font-size: 23px;
      font-weight: bold;
    }
    .english_label {
      margin: 0 5px;
      font-size: 15px;
      font-weight: bold;
    }
  }
}
:deep(.el-table_2_column_6) {
  .cell {
    font-size: 26px;
    margin: 0 16px;
    line-height: 30px;
    font-weight: bold;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: start !important;
    p {
      margin: 0 5px;
      font-size: 23px;
      font-weight: bold;
    }
    .english_label {
      margin: 0 5px;
      font-size: 15px;
      font-weight: bold;
    }
  }
}
:deep(.el-table__cell) {
  .cell {
    display: flex;
    align-items: center;
    justify-content: center;
    p {
      margin: 0 5px;
      font-size: 18px;
      font-weight: bold;
    }
  }
}
.split_class {
  width: 4px;
  background: red;
}
</style>
